import request from "@/utils/request";

export function getAllLocation() {
  return request({
    url: "/comitem/getAllLocation",
    method: "GET",
    params: {}
  });
}

export function getLocation(data) {
  return request({
    url: "/comitem/getLocation",
    method: "GET",
    params: {
      preArea: data
    }
  });
}

export function getItemByLocationid(data) {
  return request({
    url: "/comitem/getItemByLocationid",
    method: "get",
    params: {
      locationid: data
    }
  });
}

export function moveLocation(empid, beginLocation, endLocation) {
  return request({
    url: "/comitem/moveLocation",
    method: "get",
    params: {
      empid: empid,
      beginLocation: beginLocation,
      endLocation: endLocation
    }
  });
}
